<?php 

namespace app\ctrl;

class indexCtrl extends \core\keep
{
	
	function __construct()
	{

	}

	public function index()
	{
		$model = new \core\lib\model();
		$sql = "SELECT * FROM user";
		$res = $model->query($sql);
		dd($res->fetchAll());
	}

	public function view()
	{
		$data = 'Hello World';
		$this->assign('data', $data);
		$this->assign('title', '这是视图文件');
		$this->display('index.html');
	}
}